package com.mhc.haval.service;

import com.mhc.haval.dal.model.WorkflowDO;

import java.util.List;

public interface WorkFlowService {

    /**
     * 新增流程
     *
     * @param workflowDO
     * @return
     */
    Boolean addWorkflow(WorkflowDO workflowDO);

    /**
     * 修改流程
     *
     * @param workflowDO
     * @return
     */
    Boolean modifyWorkflow(WorkflowDO workflowDO);

    /**
     * 删除流程
     *
     * @param workflowId
     * @return
     */
    Boolean deleteWorkflow(Long workflowId);

    /**
     * 获取流程
     * @param workflowId
     * @return
     */
    WorkflowDO getWorkflow(Long workflowId);

    /**
     * 获取全部流程
     *
     * @param companyNo 公司编号
     * @return
     */
    List<WorkflowDO> getAllWorkflow(String companyNo);

}
